import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import { windowLoad } from './utils/window';
import './router/permission'
import store from './vstore/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIcons from '@element-plus/icons-vue'
windowLoad().then(() => {
  const app = createApp(App);
  for (const name in ElIcons){
    app.component(name,(ElIcons as any)[name])
  }
  app.use(router).use(ElementPlus, {
    zIndex: 3000,
    size: 'small',
  }).use(store).mount('#app');

});
